home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
.net 2002 March
/
DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin
/
pc
/
PC Software
/
free_browsing
/
DavesQckSearchDbar3-14
/
dqsd.exe
/
searches
/
ascii.xml
< prev
next >
Wrap
Text File
|
2002-08-30
|
976b
|
34 lines
<search function="ascii">
<name>Base Conversion: ASCII Character</name>
<description>
Convert ASCII characters to decimal, hex, octal and binary equivalents.<br/>
<div class="helpboxDescLabels">Example:</div>
<table class="helpboxDescTable">
<tr><td>ascii B</td></tr>
</table>
</description>
<category>Functions</category>
<contributor>Monty Scroggins</contributor>
<script><![CDATA[
function ascii(c)
{
if( nullArgs("ascii",c) )
return false;
var char = c.substring(0,1);
var dec = char.charCodeAt(0);
document.deff.q.value = "char: "+char +
" dec: "+dec+
" oct: "+dec.toString(8)+
" hex: "+dec.toString(16)+
" bin: "+dec.toString(2);
}
]]></script>
<copyright>
Copyright (c) 2002 David Bau
Distributed under the terms of the
GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
</copyright>
</search>